package cn.lg.soar.system.biz.modules.auth.model;


import cn.lg.soar.system.api.model.UserPostItemVO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * 多对多关联模型
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@Schema(description = "用户部门")
public class UserPostVO {

    @NotEmpty(message = "用户id不能为空")
    private List<Long> userIds;

    @Valid
    private List<UserPostItemVO> posts;

}
